<html>
<head><meta charset="utf-8"><title>Run only doc tests in library/ · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html">Run only doc tests in library/</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="221085344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221085344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221085344">(Dec 28 2020 at 19:29)</a>:</h4>
<p>Is there a way to make x.py only run doc tests for crates in library (skipping all of the normal test suites)?</p>



<a name="221085410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221085410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221085410">(Dec 28 2020 at 19:30)</a>:</h4>
<p>does <code>x.py test --doc library/std --stage 0</code> work?</p>



<a name="221085879"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221085879" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221085879">(Dec 28 2020 at 19:37)</a>:</h4>
<p>thanks, <code>--doc</code> did the trick</p>



<a name="221085889"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221085889" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221085889">(Dec 28 2020 at 19:37)</a>:</h4>
<p>do you know if there's a way to avoid manually running it for every crate?</p>



<a name="221086379"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221086379" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221086379">(Dec 28 2020 at 19:46)</a>:</h4>
<p>I'm not sure what you mean</p>



<a name="221086395"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221086395" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221086395">(Dec 28 2020 at 19:46)</a>:</h4>
<p><code>x.py test --doc</code> without arguments should work if that's what you want</p>



<a name="221086703"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221086703" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221086703">(Dec 28 2020 at 19:51)</a>:</h4>
<p>it runs the doc tests, but it also runs all of the other test (e.g. everything in <code>src/test</code>)</p>



<a name="221086754"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221086754" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221086754">(Dec 28 2020 at 19:52)</a>:</h4>
<p>oh oof, that seems like a bug in rustbuild</p>



<a name="221247688"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20only%20doc%20tests%20in%20library//near/221247688" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20only.20doc.20tests.20in.20library.2F.html#221247688">(Dec 30 2020 at 21:23)</a>:</h4>
<p><span class="user-mention" data-user-id="125294">@Aaron Hill</span> Maybe open an issue tagged with <code>A-rustbuild</code>?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>